import request from '@/utils/request'

export const getPage = (page,queryParams) => {
  return request({
    url: '/loudong/getPage?pageNum='+page.pageNum+'&pageSize='+page.pageSize,
    method: 'post',
    data:queryParams
  })
}
export const getType = () => {
  return request({
    url: '/loudong/getType',
    method: 'post'
  })
}
export const saveOrUpdate = (data) => {
  return request({
    url: '/loudong/saveOrUpdate',
    method: 'post',
    data:data
  })
}
export const del = (id) => {
  return request({
    url: '/loudong/del/'+id,
    method: 'delete'
  })
}
